home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 787 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: sydney.DIALix.oz.au!not-for-mail
  2. From: accolyte@sydney.DIALix.oz.au (Troy Till)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: 12 Jan 1996 01:02:26 +1100
  6. Organization: DIALix Services, Sydney, Australia.
  7. Sender: accolyte@sydney.DIALix.oz.au
  8. Message-ID: <4d359i$ii7$1@sydney.DIALix.oz.au>
  9. References: <john.hendrikx.40ka@grafix.xs4all.nl> <MQAQx*XOe@yaps.rhein.de> <OWhVx*42f@yaps.rhein.de> <4cuhng$dmn@maureen.teleport.com> <jasonb.821247870@cs.uwa.edu.au>
  10. NNTP-Posting-Host: accolyte@sydney.dialix.oz.au
  11.  
  12. Jason S Birch (jasonb@cs.uwa.edu.au) wrote:
  13. : sschaem@teleport.com (Stephan Schaem) writes:
  14. : >Arno Eigenwillig (arno@yaps.rhein.de) wrote:
  15. : >: Why don't you read what he wrote? A reasonable example for that would
  16. : >: be operations on clock_t.
  17. : > The claim was general: you can forget your variable type when you use 
  18. : > them in C... I'm just saying thats its not wise.
  19. : What we've been (repeatedly) trying to say, is that's *not* what he
  20. : said. He said you can forget about the *implementation* of your
  21. : variable type on a particular machine (if the data is encapsulated
  22. : correctly). The whole point being that in assembler, you cannot forget
  23. : the implementation, because pratically every time you do *use* a
  24. : "variable" of that type, you have to specify how big it is.
  25.  
  26. Bear with me here, 'cause I don't know the second thing about C..
  27.  
  28. can you do something to the equivalent of:
  29.  
  30.   addx.l d0,d1
  31.   move.w d1,d2
  32.  
  33. Which is treating d1 as a long word, then a word. How would you implement 
  34. this in C?
  35.  
  36. Troy.
  37.  
  38.